import json
import datetime
from Topic import Topic
from Identity import Identity
from Comment import Comment
from Subscription import Subscription
from datetime import datetime

#class Charity(): pass
#class Identity(): pass

#c = Charity()
#c.name = "PlanetGranite?"
#c.description = "what?"
#i = Identity()
#i.fromCommunity = "ABPMClient"
#i.fromUser = "PKRClient"
#i.fromUser = str(datetime.now())
#c.identity = i
#c.amount = "5000"

#print json.dumps(c, default=lambda o: o.__dict__, indent=4, sort_keys=True)

#class Client():
#        
#    def __init__(self, list = []):
#        self.myList = list
#        
#    def printlist(self):
#        print self.myList
#
#
#c = Client(["fuck", "you"])
#c.printlist()

t = Topic("Climbing", "all about climbing")
i = Identity("Cathedral", "Michael")
#i.setDate(datetime.now())
t.setIdentity(i)
c = Comment("climbing is awesome", t.getTitle())
c.setCommunityId("Cathedral")
c.setIdentity(i);
t.addComment(c)


s = Subscription(email="Shilka7@gmail.com", name="Charity5")




#print json.dumps(s, default=lambda o: o.__dict__)